﻿@{
    Layout = null;
}
@model RiderShop.Mobile.Modle.MyAccount.MyPromotionCodeModel
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>蓉记鲜鲜鲜新春百万优惠券大放送</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimal-ui">
    <link href="~/Themes/RongJi/Style/base/css/youhuijuan.css" rel="stylesheet" />
</head>
<body>
    <img src="~/Themes/RongJi/Style/base/imgs/promotion/bg.png" class="topImg" />
    <ul class="juanList">
        <li>
            <a href="javascript:void(0)" cardid="p4RWNuPN5xXxDXlDs_smGVTUN6pw" name="batchAddCard">
                <img src="~/Themes/RongJi/Style/base/imgs/promotion/5.png" alt="5元优惠券">
            </a>
        </li>
        <li>
            <a href="javascript:void(0)" cardid="p4RWNuHjMD5nhK78IiwnE38oCrE8" name="batchAddCard">
                <img src="~/Themes/RongJi/Style/base/imgs/promotion/10.png" alt="10元优惠券">
            </a>
        </li>
        <li>
            <a href="javascript:void(0)" cardid="p4RWNuP5KoZw8j_CGL-L9yDUjYZw" name="batchAddCard">
                <img src="~/Themes/RongJi/Style/base/imgs/promotion/25.png" alt="25元优惠券" />
            </a>
        </li>
        <li>
            <a href="javascript:void(0)" cardid="p4RWNuE92Mwhxw75hZ0s_Rado83M" name="batchAddCard">
                <img src="~/Themes/RongJi/Style/base/imgs/promotion/88.png" alt="88元优惠券" />
            </a>
        </li>
        <br class="clearfix">
    </ul>
    <a href="http://m.rongji365.com/" class="has-card-go">已领券，去扫货！</a>
    <script type="text/javascript">
        window.config = {
            link: 'http://m.rongji365.com/promotion',
            imgUrl: 'http://m.rongji365.com/Storage/CommResource/sicon.jpg',
            title: '蓉记鲜鲜鲜新春百万优惠券大放送',
            desc: '马上快没了,你还不来'
        };
    </script>
    @Html.Action("ConfigScript", "WeixinJsSdk")
</body>
</html>
<script src="~/Themes/RongJi/Style/base/js/jquery-1.10.1.min.js"></script>
<script>
    $(function () {
        $("a[name='batchAddCard']").click(function (e) {
            var cradId = $(this).attr('cardId');
            //alert(cradId);
            $.get("/promotion/GetTimeStampAndSignature?cardId=" + cradId, function (response) {
                //alert(response.signature);
                if (typeof WeixinJSBridge !== "undefined") {
                    WeixinJSBridge.invoke('batchAddCard',
                        {
                            "card_list": [
                            {
                                "card_id": response.cardId,
                                "card_ext": "{\"timestamp\":\"" + response.timestamp + "\",\"signature\":\"" + response.signature + "\"}"
                            }]
                        },
                        function (res) { });
                }
                else {
                    alert("请在微信中领取优惠券！")
                }
            });
        });
    });
</script>
<!--Static Code Start-->
<script type="text/javascript" src="http://js.tongji.linezing.com/3547905/tongji.js"></script>
<script type="text/javascript">
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fd2c430d3acdc174f29f6feef73ea35fa' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- Piwik -->
<script type="text/javascript">
    var _paq = _paq || [];
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function () {
        var u = "//analytics.it-hsmedia.com/";
        _paq.push(['setTrackerUrl', u + 'piwik.php']);
        _paq.push(['setSiteId', 2]);
        var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
        g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'piwik.js'; s.parentNode.insertBefore(g, s);
    })();
</script>
<noscript><p><img src="//analytics.it-hsmedia.com/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
<!--Static Code End-->
